﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.AccountingObjectCategory
{
    public class AccountingObjectCategoriesPresenter : Presenter<IAccountingObjectCategoriesView>
    {
        public AccountingObjectCategoriesPresenter(IAccountingObjectCategoriesView view)
            : base(view)
        {
        }

        public void Display(bool isCustomer, bool isVendor, bool isEmployee)
        {
            View.AccountingObjectCategories = Model.GetAccountingObjectCategoriesByBranch(isCustomer, isVendor, isEmployee);
        }

        public void DisplayActive(bool isCustomer, bool isVendor, bool isEmployee)
        {
            View.AccountingObjectCategories = Model.GetAccountingObjectCategoriesByBranchAndActive(isCustomer, isVendor, isEmployee);
        }
    }
}
